package com.appcheck.recording.action.impl;

import org.json.JSONException;
import org.json.JSONObject;

import com.appcheck.recording.action.AbstractAction;
import com.appcheck.recording.action.ActionConvert;
import com.appcheck.recording.handler.AbstractActionHandler;
import com.appcheck.recording.plugin.AbstractActionConverter;

public class TextChangedAction implements AbstractAction, ActionConvert {

	private String text;
  
	public final String toString(){
		JSONObject localJSONObject = new JSONObject();
		try{
			localJSONObject.put("class", "TextChangedAction");
			localJSONObject.put("text", this.text);
		}catch (JSONException localJSONException) {}
		return localJSONObject.toString();
	}
  
	public final String getText(){
		return this.text;
	}
  
	public final void setText(String text){
		this.text = text;
	}
	
	@Override
	public boolean handle(AbstractActionHandler param) {
		return param.visit(this);
	}

	@Override
	public void toTestCode(AbstractActionConverter actionConverter) {

	}

}
